{extend name="template/base" /}
{block name="content"}
<div class="page-container">
    <div class="toptip">
    <h2>提示：</h2>
    <p>
     设置题库的不同章节（如变电、线路、基建）<br>
    </p>
  </div>
<div class="cl pd-5 bg-1 bk-gray form-search">
<form class="mb-20" method="get" action="{:\\think\\Url::build($Request.action)}">
 <input type="text" class="input-text itext" placeholder="章节名称" name="p_name" value="{$Request.param.p_name}" >
    <div class="select-box sbox">
        <select name="se_subjectid" class="select combox autoloaditem"  >
            <option value>请选择科目</option> 
            {volist name='subject' id='st'}
             <option value="{$st.id}" {$Request.param.se_subjectid==$st.id ? 'selected' : ''}>{$st.s_name}</option> 
             {/volist}           
        </select>
    </div> 
    <div style="width: 100px;" class="select-box sbox">
        <select name="p_status" class="select">
            <option value="0">状态</option>
            <option value="1a" {$Request.param.p_status=='1a' ? 'selected' : ''}>启用</option>
            <option value="0a" {$Request.param.p_status=='0a' ? 'selected' : ''}>禁用</option>
        </select>
    </div> 
    <button type="submit" class="btn btn-success radius"><i class="Hui-iconfont">&#xe665;</i>查询</button>
</form>
</div>
    <div class="cl pd-5 bg-1 bk-gray">
        <span class="l">
            {tp:menu menu="add,forbid,resume,delete,recyclebin" /}
        </span>
        <span class="r pt-5 pr-5">
            共有数据 ：<strong>{$count ?? '0'}</strong> 条
        </span>
    </div>
    <table class="table table-border table-bordered table-hover table-bg mt-20">
        <thead>
        <tr class="text-c">
            {include file="th" /}
        </tr>
        </thead>
        <tbody>
        {volist name="list" id="vo"}
        <tr class="text-c">
            {include file="td" /}           
        </tr>
        {/volist}
        </tbody>
    </table>
    <div class="page-bootstrap">{$page ?? ''}</div>
</div>
{/block}

